extension :revision => :head do
  task :fill_real_revision do
    if scm.nil?
      logger.debug "can't set revision to HEAD as there's no SCM"
      next
    end
    set(:real_revision) { scm.head }
  end
end
